package com.project;

import com.project.generation.ProjectGeneration;
import com.project.util.Config;

import java.io.File;
import java.net.URI;
import java.net.URISyntaxException;

public class Main {

    public static void main(String[] args) throws URISyntaxException {

        URI uri = Main.class.getClassLoader().getResource("config.json").toURI();
        File file = new File(uri);
        if ( !file.exists() ) {
            System.out.println("配置文件不存在");
            return;
        }
        Config config = Config.getConfig(file);
        ProjectGeneration projectGeneration = new ProjectGeneration(config);
        projectGeneration.start();
    }

}
